package patterns.business;

/**
 * Created by thinkpad on 16-12-11.
 * 业务查询服务类
 */
public class BusinessLookup {
    //根据选择的服务类型，返回所需服务
    public IBusinessService getBusinessService(String serviceType){
        if (serviceType.equalsIgnoreCase("EJB")){
            return new EJBService();
        }else{
            return new JMSService();
        }
    }
}
